<?php

define('UPLOAD_DONT_OUTPUT', true);

$_GET['field'] = 'imgFile';	//
$_GET['permanent'] = '1';

include '../absPath.php';

$rs = include G_HTDOCS_ABS_PATH."/upload/imgUpload.php";

outputJSON(array('error'=>0, 'url'=>$rs['URL']['original'][0], 'img_item_id'=>$rs['img_item_id']), true, false);